package com.cn.springcloudshop.mapper;

import com.cn.springcloudshop.model.YmShopProduct;
import com.cn.springcloudshop.model.YmShopProductExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YmShopProductMapper {
    int countByExample(YmShopProductExample example);

    int deleteByExample(YmShopProductExample example);

    int deleteByPrimaryKey(Long productId);

    int insert(YmShopProduct record);

    int insertSelective(YmShopProduct record);

    List<YmShopProduct> selectByExample(YmShopProductExample example);

    YmShopProduct selectByPrimaryKey(Long productId);

    int updateByExampleSelective(@Param("record") YmShopProduct record, @Param("example") YmShopProductExample example);

    int updateByExample(@Param("record") YmShopProduct record, @Param("example") YmShopProductExample example);

    int updateByPrimaryKeySelective(YmShopProduct record);

    int updateByPrimaryKey(YmShopProduct record);

    int updateBatchByPK(@Param("list") List<YmShopProduct> products);

    List<YmShopProduct> selectListByPrimaryKey(@Param("list") List<Long> ids);
}